package com.yixun.qfbao.response.premises.detail;

import java.io.Serializable;

import org.apache.commons.lang.StringUtils;

import com.yixun.qfbao.apidto.PremisesDetailResDto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author zilong.liu
 * @date 2020-8-12
 */
@Data
public class SellInfo implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	public SellInfo() {
	}
	
	public SellInfo(PremisesDetailResDto detailResDto) {
		if(StringUtils.isNotBlank(detailResDto.getSelling())) {
			this.selling = detailResDto.getSelling();
		}
		if(StringUtils.isNotBlank(detailResDto.getCustomer())) {
			this.customer = detailResDto.getCustomer();
		}
		if(StringUtils.isNotBlank(detailResDto.getIntroduction())) {
			this.introduction = detailResDto.getIntroduction();
		}
		if(StringUtils.isNotBlank(detailResDto.getSaleSkill())) {
			this.saleSkilling = detailResDto.getSaleSkill();
		}
	}

	@ApiModelProperty(value = "楼盘卖点")
	private String selling;
	
	@ApiModelProperty(value = "目标客户")
	private String customer;
	
	@ApiModelProperty(value = "拓客技巧")
	private String saleSkilling;
	
	@ApiModelProperty(value = "项目介绍")
	private String introduction;
	
}
